<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/sys/role.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	$('#editRoleForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<div>
	<h3>编辑角色信息</h3>
</div>
<div style="width:400px;float:left;">
	<div height="50">
		<form id="editRoleForm">
			<table>
<!-- 				<tr height="40"> -->
<!-- 					<td class="table-left">所属机构</td> -->
<!-- 					<td><div class="input-group"> -->
<!-- 							<span class="btn-group"> -->
<!-- 								<input class="form-control" name="on" id="on" value="${(role.on)!''}" size="16" type="text" readonly="readonly"  style="width: 100px;"> -->
<!-- 								<input type="hidden" name="oc" id="oc" value="${(role.oc)!''}" /> -->
<!-- 								<button class="btn btn-primary" type="button" title="选择该用户所属机构" onclick="javascript: selectOrgan('oc','on');"><i class="icon-search"></i></button> -->
<!-- 								<button class="btn btn-danger" type="button" title="去除机构查询条件" onclick="javascript: $('#oc').val(''); $('#on').val('');"><i class="icon-remove"></i></button> -->
<!-- 							</span> -->
<!-- 						</div> -->
<!-- 					</td> -->
<!-- 				</tr> -->
				<tr height="40"><td class="table-left">名称</td>
					<td>
						<input type="text" id="name" name="name"  />
						<input type="hidden" id="code" name="code" />
					</td>
				</tr>
				<!-- <tr height="30"><td class="table-left">是否默认角色</td>
					<td><@mt.YesOrNo r=true name='isDefault' d=false value="false"/></td>
				</tr> -->
				<tr><td class="table-left">备注</td>
					<td><textarea id="remark" name="remark" cols="30" rows="5"></textarea></td>
				</tr>
				<tr height="20"></tr>
				<tr height="40"><td colspan="2" style="text-align: center;">
						<a href="#" class="btn btn-info" onclick="javascript: saveRole_role(); return false;">
							<i class="icon-save"></i> &nbsp;保&nbsp;&nbsp;存
						</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" class="btn btn-primary" onclick="javascript: sys_load_handle('organRole'); return false;">
							<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
						</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>